/*
 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
 */
#ifndef DIAGLOGUSBSETTING_H
#define DIAGLOGUSBSETTING_H

#include <QWidget>
#include <QRegExpValidator>
#include "ui_MenuSettingUSB.h"

namespace BurnDlg {
    class DiaglogUSBSetting : public QWidget {
        Q_OBJECT

    public:
        explicit DiaglogUSBSetting(QWidget *parent = nullptr);
        ~DiaglogUSBSetting() final;
        void SetMultipleBurnParam(unsigned int totalNumber, unsigned int numPerLines);
        void GetMultipleBurnParam(unsigned int &totalNumber, unsigned int &numPerLines) const;
        void LoadDlgConfig() const;

    signals:
        void SignalSettingSuccess();

    private slots:
        void SlotOkButtonClick();
        void SlotCancelButtonClick();

    private:
        void InitUi();

    private:
        Ui::DiaglogUSBSetting *ui;
        QRegExpValidator *pReg0;
        QRegExpValidator *pReg1;

        unsigned int totalNum;
        unsigned int numPerLine;
    };
}
#endif // DIAGLOGUSBSETTING_H
